package com.kefu.call.vo;

import com.kefu.common.util.DivUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class CallBigScreenOverviewTrendVo extends CallAgentWorkLoadVo {
    @ApiModelProperty("呼入总数")
    private int callInTotal;

    @ApiModelProperty("呼入未振铃")
    private int callInNoRing;

    @ApiModelProperty("外呼振铃坐席数")
    private int outCallAgentRingCount;

    @ApiModelProperty("外呼接听坐席数铃")
    private int outCallAgentTalkCount;

    @ApiModelProperty("呼入振铃坐席数")
    private int callInAgentRingCount;

    @ApiModelProperty("呼入接听坐席数")
    private int callInAgentTalkCount;

    @ApiModelProperty("趋势图日期")
    private String resultDate;

    @ApiModelProperty("趋势图时间")
    private String resultHour;

    @Override
    public String getAgentAnswerRatio() {
        return DivUtil.percent(super.getAgentAnswerNumber(), callInTotal)==null?"0":DivUtil.percent(super.getAgentAnswerNumber(), callInTotal);
    }
}
